<template>
	<view class="wrap">
		<view class="workbench-title">数据分析</view>
		<view class="toolbar">
			<u-grid class="grid" :col="4" :border="false">
				<u-grid-item :index="0" @click="navTo('/pages/alarmKanban/alarmKanban')">
					<view class="home-icon icon-color03">
						<i class="iconfont icon-jinggao"></i>
					</view>
					<view class="grid-text">告警看板</view>
				</u-grid-item>
				<u-grid-item :index="1" @click="navTo('/pages/DZJ/DZJ')">
					<view class="home-icon icon-color12">
						<i class="iconfont icon-zhuye"></i>
					</view>
					<view class="grid-text">DZJ</view>
				</u-grid-item>
				<u-grid-item :index="2" @click="navTo('')">
					<view class="home-icon icon-color04">
						<i class="iconfont icon-guzhang-"></i>
					</view>
					<view class="grid-text">故障小时报</view>
				</u-grid-item>
			</u-grid>
		</view>
		<view class="workbench-title">实用工具</view>
		<view class="toolbar">
			<u-grid class="grid" :col="4" :border="false">
				<u-grid-item :index="0" @click="navTo('')">
					<view class="home-icon icon-color04">
						<i class="iconfont icon-xiaoxi"></i>
					</view>
					<view class="grid-text">消息推送</view>
				</u-grid-item>
				<u-grid-item :index="1" @click="navTo('')">
					<view class="home-icon icon-color03">
						<i class="iconfont icon-shop"></i>
					</view>
					<view class="grid-text">应用商店</view>
				</u-grid-item>
				<u-grid-item :index="2" @click="navTo('')">
					<view class="home-icon icon-color12">
						<i class="iconfont icon-daiban"></i>
					</view>
					<view class="grid-text">统一待办</view>
				</u-grid-item>
			</u-grid>
		</view>
	</view>

</template>
<script>
	/**
	 */
	export default {
		data() {
			return {
				show: false,
				head: '/static/home/head.png',
				imgList: [{
						image: '/static/banner/banner1.png'
					},
					{
						image: '/static/banner/banner2.png'
					},
					{
						image: '/static/banner/banner3.png'
					},
					{
						image: '/static/banner/banner4.png'
					},
				],
				todoCount: 4
			};
		},
		onLoad() {

		},
		methods: {
			navTo(url) {
				console.log(url);
				uni.navigateTo({
					url: url
				});
			},
			imgListClick(index) {
				console.log(`点击了第${index + 1}页图片`)
			},
			itemClick(index) {
				console.log(index);
			}
		}
	};
</script>
<style lang="scss">
	@import 'index.scss';

	.banner-box {
		padding: 0 2%;
		width: 96%;
		height: 170rpx;
		margin: 30rpx 0 30rpx;
	}

	.u-swiper-wrap {
		padding: 0 10px;
	}

	.banner-pic {
		width: 47%;
		float: left;
		display: inline-block;
		margin: 0 1.5%;
	}

	.banner-pic image {
		width: 100%;
		height: 170rpx;
		border-radius: 12rpx;
		box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
	}

	.u-mode-light-info {
		background-color: #ffffff;
		color: #666666;
		border: 1px solid #e9ecf6;
		font-size: 12px;
		padding: 2px 8px;
		position: relative;
		top: -3px;
	}

	.workbench-title {
		font-size: 32rpx;
		font-weight: bold;
		color: #333333;
		padding: 15px 30rpx;
	}

	.home-icon i.icon-tongzhi {
		font-size: 22px;
	}
	
</style>
